import { http } from "@/utils/http";

// 根据抄表组查询抄表项目
export const queryMeterReadingItems = data => {
  return http.request(
    "post",
    `/sharing/api/v1/meterReadingItem/queryMeterReadingItems`,
    { data },
    {
      headers: {
        noLoading: true
      }
    }
  );
};

//查询手动抄表数据
export const queryMeterDataList = data => {
  return http.request(
    "post",
    `/sharing/api/v1/meterReadingDetailManual/queryList`,
    { data },
    {
      headers: {
        noLoading: true
      }
    }
  );
};

//按sequence删除一组抄表数据
export const removeBySequence = (data?: object) => {
  return http.request("post", `/sharing/api/v1/meterReadingDetailManual/removeBySequence`, {
    data
  });
};

//按sequence添加-更新一组抄表数据
export const saveBySequence = (data?: object) => {
  return http.request("post", `/sharing/api/v1/meterReadingDetailManual/saveBySequence`, {
    data
  });
};
